import './user.css'
import React from 'react'

import UserCreation from './user_creation.js'

import TableController from '../widget/table_controller'
import DataTable from '../widget/data-table'


const User = (props) => (
    <TableController routes={[
        {
            path: props.match.url + '/create',
            name: '用户注册',
            component: UserCreation,
            api: '/user'
        },
        {
            path: props.match.url + '/table',
            name: '用户数据管理',
            component: DataTable,
            api: '/user',
            btns: 'deleteBtn'
        }
    ]} />
)

export default User;